﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FluentNHibernate.Mapping;

namespace CommonShop.Service.MapClasses {
    public  class ProductMap :ClassMap<Product> {
        public ProductMap() {
            Id(x => x.ProductID);
            Map(x => x.Name).Length(50).Not.Nullable();
            Map(x => x.TypeId).Length(50).Not.Nullable();
            Map(x => x.Remark).Length(50).Not.Nullable();
        }
    }
}
